<?php
/**
 * User: Do
 * Date: 7/2/14
 * Time: 10:50 AM
 */
class Controller {

    function __construct() {
        $this->view = new View();
        $this->libs = new Libs();
        $this->mailer = new Mailer();
    }

    public function model($name){
        $path = "models/" . $name . ".php";
        if (file_exists($path)) {
            require $path;
            $model = $name;
            $this->$model = new $name();
        }
    }

}